//----------------------------------Include-------------------------------------
#include "mcu.h"
#include "board.h"
//------------------------------------------------------------------------------

//--------------------------------Public Func-----------------------------------
void brd_init(void)
{
  mcu_int_disable();
  mcu_release_jtag();
  mcu_pri_grp_cfg();
  mcu_sys_clock();
  mcu_init_systick();
  
  mcu_init_do();
  mcu_init_di();
  
  mcu_init_uart3(115200);   //4G
  mcu_init_uart6(115200);   //dbg
  mcu_init_uart7(9600);     //485
  
  mcu_init_spi2();    //lcd
  mcu_init_spi3();    //eth
  
  mcu_init_i2c2();    //24c256
  brd_init_24c256();
  
  mcu_init_adc();
  mcu_init_tim3();    //adc trigger
  
  mcu_init_key();
  mcu_int_enable();
}
//------------------------------------EOF---------------------------------------



